package com.charactereducation.module.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Baggio on 2018-6-22.
 */
public class BaseModule implements Serializable {
     /**
      * 0：无效
      */
     public static final byte STATUS_UNVALID = 0;
     /**
      * 1:有效
      */
     public static final byte STATUS_VALID = 1;


     private  Long tid;
     private Byte status;
     @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     private Date createTime;


     public Long getTid() {
          return tid;
     }

     public void setTid(Long tid) {
          this.tid = tid;
     }


     public Byte getStatus() {
          return status;
     }

     public void setStatus(Byte status) {
          this.status = status;
     }

     public Date getCreateTime() {
          return createTime;
     }

     public void setCreateTime(Date createTime) {
          this.createTime = createTime;
     }
}
